<?php
declare (strict_types = 1);

namespace app\common\system\model;

use think\Model;
use think\model\concern\SoftDelete;

class AuthRole extends Model
{
    protected $table = "tk_system_auth_role";

    use SoftDelete;
    protected $defaultSoftDelete = 0;

    public function setPcAttr($value) {
        return empty($value) ? '[]' : json_encode($value);
    }

    public function getPcAttr($value, $data) {
        return empty($value) ? [] : json_decode($value, true);
    }

    
}
